package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.openfeign.factory.OrderOpenfeignFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-order",fallbackFactory = OrderOpenfeignFallbackFactory.class)
public interface OrderOpenfeign {
    @GetMapping("/courseOrderItem/getOrderItemByOrderNo/{orderNo}")
    public JsonResult getOrderItemByOrderNo(@PathVariable("orderNo")String orderNo);

    @GetMapping("/courseOrder/getOrder/{orderNo}")
    public JsonResult getOrder(@PathVariable("orderNo")String orderNo);
}
